"""
类是一种自定义数据类型
"""


# 设计类(class)
class Student:
    name = None
    gender = None
    age = None
    nationality = None
    native_place = None


# 创建对象
stu_1 = Student()

# 对象属性赋值
stu_1.name = "峡谷杨爹"
stu_1.gender = "男"
stu_1.age = 25
stu_1.nationality = "中国"
stu_1.native_place = "江苏省"

# 获取对象中记录的信息
print(stu_1.name)
print(stu_1.gender)
print(stu_1.age)
print(stu_1.nationality)
print(stu_1.native_place)
